const Angular = require('angular');
const app = Angular.module('page5App', []);
import linkTree from '../../directives/linkTreeDirective';
import smDirective from '../../directives/smDirective';
linkTree(app)
smDirective(app);
import list from '../../../mock/countries.json'
app.controller('page5Ctrl', ['$scope', function ($scope) {
    $scope.title = 'page5';
    $scope.selectedValue = 'male';
    $scope.singleValue = 'singleValue';
    $scope.countryValue = 'cn';
    $scope.list = list;

    $scope.$watch('selectedValue', function(newVal, oldVal){
        console.log(newVal,oldVal, $scope.singleValue);
    })
    $scope.changeValue = function(val){
        console.log('change',val);
    }
}])
